<link rel="stylesheet" href="/Static/mobile/css/article/article.css" type="text/css"/>
<link rel="stylesheet" href="/static/mobile/js/swiper/swiper.min.css">
   <style>
 
    .swiper-container {
        width: 100%;
        height: 100%;
    }
    .swiper-container  img{
		width:100%;
    }
    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
    }
    </style>
<include file="Article:nav" />
<div class="content">
	<div class="content-inner">
		<div class="content-container" style="">
			<!-- 内容开始 -->


<div class="content-header">


<?php if($article['is_title']==1){ ?>
	<h3>{$seo_title}</h3>
	  <div class="summary">{$seo_description}</div>
	<p class="news-info">
		<?php if($article['is_original'] == 1){?>
		<span id="copyright_logo" class="meta_original_tag meta_original_tag">原创</span>
		<?php  } ?>

		<span class="date"> <?php if($article['post_time']>0){
				echo date("Y-m-d",strtotime($article['post_time']));
			}else{
				echo date("Y-m-d");
			};
		?>
		</span> <span class="user">
		<a href="/mobile/article/lists"><?php echo C("SITE_NAME");?></a>
		</span>
		<!--  <span class="set-size"><a href="####" class="set-size-btn">A+</a></span>-->
	</p>
<?php } ?>

	<div class="swiper-container">
		<div class="swiper-wrapper">
		<?php if($article['article_thumb']){ $p = json_decode($article['article_thumb'],true);foreach($p as $k=>$v){ ?>
	        <li class='swiper-slide'>
	          <img src="<?php echo C('UPYUN_DOMAIN').$v;?>" onerror="javascript:this.src='__STATIC__admin/images/error.png';" />
	        </li>
		<?php } } ?>
		</div>
		</div>
</div>

<div class="content-main" style="padding:0 12px 10px;">
	<!-- 正文 -->

	
	<?php if($can_view){?>
		
		<?php echo htmlspecialchars_decode($article['content']);;?>
		
	<?php }else{ ?>
	
		<!-- 收费试看 -->
		<?php if($article['try_content']){?>
		<div style="text-align:center;margin-bottom:10px;border:1px dashed #FF9A9A;">
			<h3 style="text-align:center;color:black;margin-top:10px;">免费试看部分:</h3>
			<?php echo htmlspecialchars_decode($article['try_content']);;?>
		</div>
		<?php } ?>
	<?php } ?>
	

	
	<?php if($article['need_guestbook'] == 1){ ?>
		{:W('Guest/book',array($touser,$article))}
	<?php } ?>
	
	
	<!-- 阅读原文 -->
	<include file="Article:index_yuanwen" />


</div>



		
	</div>
</div>

<script type="text/javascript" src="/static/mobile/js/swiper/swiper.min.js"></script>
 <script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true
    });
    </script>
